<template>
  <div class="md-swiper-base">
    <el-carousel :height="height">
      <el-carousel-item v-for="(item, index) in swiperData" :key="index">
        <img :src="item" alt="">
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
export default {
  name: 'MdSwiperBaseComponent',
  props: {
    height: {
      default: 400
    },
    swiperData: {
      type: Array,
      default: () => []
    }
  }
}
</script>

<style lang="scss" scoped>
.md-swiper-base {
  width: 100%;
  box-sizing: border-box;
  height: 100%;
  ::v-deep .el-carousel {
    height: 100%;
  }

  img {
    width: 100%;
    height: 100%;
  }
}
</style>